package com.echo.boot.pojo;

/**
 * Created with IntelliJ IDEA
 * Created By CQ
 * Date: 2020/8/30
 * Time: 22:36
 */
public class Student implements Comparable<Student> {
    public int score;
    public int age;

    public Student(int score, int age) {
        this.score = score;
        this.age = age;
    }

    @Override
    public int compareTo(Student o) {
        return age - o.age;
    }
}
